package com.example.industry.service.impl;

import com.example.industry.MyMailSender;
import com.example.industry.service.InviteService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class InviteServiceImpl implements InviteService
{
    @Resource
    private MyMailSender myMailSender;

    @Override
    public boolean sendInvite(Integer projectId, String mailTo, String description)
    {
        myMailSender.sendTextMailMessage(mailTo,"Invite You To Join Our Team.", description);
        return true;
    }

    @Override
    public boolean acceptInvite(Integer projectId, Integer userId)
    {
        // TODO: 将inviteId对应的目标用户加入到目标项目中
        return false;
    }

}
